package com.byx.imclientutil.listener;

import com.byx.imclientutil.entity.BaseMessage;
import com.byx.imclientutil.protobuf.ChatMessageProtobuf;

/**
 * OnMessageReceivedListener
 *
 * @author Superb
 * @date 2021/2/9 16:43
 */
public interface OnMessageReceivedListener {
    /**
     * 接收到消息
     * @param baseMessage 消息实体
     */
    void onMessageReceived(BaseMessage baseMessage);

    /**
     *
     * @param msg
     */
    void onMessageReceived(ChatMessageProtobuf.Msg msg);
}
